import core.demo.BubbleSort;
import javafx.util.Pair;

import java.util.Vector;

public class test {
    public static void main(String[] args) {
        Integer[] arr={5,2,4,3,1};
        BubbleSort<Integer> bub=new BubbleSort<Integer>(arr);
        Comparable<Integer>[] arr2=bub.getSortResult();
        Vector<Pair<Integer,Integer>> arr3=bub.getProcess();
        for (Comparable<Integer> integerComparable : arr2) {
            System.out.println(integerComparable);
        }
        for(Object pair:arr3){
            System.out.println(pair);
        }
    }
}
